package xyz.hubery.feign;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestHeader;
import xyz.hubery.dto.AdminBankDTO;

import java.util.List;

/**
 * 银行卡服务远程调用
 */
@FeignClient(name = "admin-service",configuration = OAuthFeignConfig.class, path = "/adminBanks")
public interface AdminBankServiceFeign {

    @GetMapping("/list")
    List<AdminBankDTO> listAdminBanks();
}
